﻿Imports SistemaINCA.Security
Imports SistemaINCA.Models.ViewModels

Namespace Models

    Public Interface IGroupGrados
        '<Authorize(Roles:="ERA")> _
        'Function GetListItem() As IEnumerable(Of SelectListItem)
    End Interface

    Partial Public Class SchoolClickDB_Repositorio
        Implements IGroupGrados

        Public ReadOnly Property IGroupGrados() As IGroupGrados
            Get
                Return DirectCast(Me, IGroupGrados)
            End Get
        End Property

        'Private Function GetListItem() As System.Collections.Generic.IEnumerable(Of System.Web.Mvc.SelectListItem) Implements IGroupGrados.GetListItem
        '    Try
        '        Using cnn As New SchoolClickEntities
        '            'Obtenemos los datos de la tabla temporal
        '            Dim var = cnn.GROUP_GRADOS.ToList
        '            Return var.Select(Function(gg) New SelectListItem With {.Text = gg.NOMBRE_GROUP, .Value = gg.ID_GROUP_GRADO})
        '        End Using
        '    Catch ex As Exception
        '        Throw New ApplicationException(ex.InnerException.Message)
        '    End Try
        'End Function
    End Class
End Namespace
